import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import getters from './getters'
import mutations from './mutations'
import actions from './actions'
// 使用Vuex插件
Vue.use(Vuex)
// 创建仓库
const store = new Vuex.Store({
  state,
  getters,
  mutations,
  actions
})

// 导出仓库
export default store
